﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="A_NhanVien_insert.aspx.cs" Inherits="admin_A_NhanVien_insert" Title="Untitled Page" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
<div>
        <div class="title" align="center">
            Thêm Mới Nhân Viên
        </div>                  
        <div>
          <table width="100%" cellspacing="1" cellpadding="3" border="1" bgcolor="#cccccc"> 
                 
                 <tr>
                    <td style="width:30%; height: 30px;">Tên Nhân Viên</td>
                    <td style="width:70%; height: 30px;"><asp:TextBox ID="txt_Tennv" runat="server" Width="229px"></asp:TextBox>&nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_Tennv"
                            ErrorMessage="Tên nhân viên còn trống">nhập tên</asp:RequiredFieldValidator></td>
                </tr> 
                  <tr>
                    <td style="width:30%">Mật Khẩu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_mk" runat="server" Width="284px" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_mk"
                            ErrorMessage="Chưa nhập mật khẩu">Mật khẩu còn trống</asp:RequiredFieldValidator></td>
                </tr>
                    <tr>
                    <td style="width:30%">Tài Khoản</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_taiKhoan" runat="server" Width="284px"></asp:TextBox>
                     </td>
                </tr>
                   <tr>
                    <td style="width:30%">Mã Quyền</td>
                    <td style="width:60%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_quyen" runat="server" Width ="200px">
                        </asp:DropDownList></td>
                </tr> 
                <tr>
                    <td style="width:30%">Địa  Chỉ</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_daichi" runat="server" Width="284px"></asp:TextBox>
                        </td>
                </tr>   
                <tr>
                    <td style="width:30%; height: 41px;">Điện Thoại</td>
                    <td style="width:70%; height: 41px;">
                        <asp:TextBox ID="txt_dienthoai" runat="server" Width="143px" ToolTip="ví dụ : (016)8888225"></asp:TextBox>
                        (---)</td>
                </tr>             
                   <tr>
                    <td style="width:30%">Email</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_mail" runat="server" Width="282px" ToolTip="ví dụ : lam@yahoo.com"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txt_mail"
                            ErrorMessage="ví dụ  le@yahoo.com" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">sai định dạng</asp:RegularExpressionValidator></td>
                </tr>   
                <tr>
                    <td style="width:30%"></td>
                    <td style="width:70%"><asp:Button ID="btn_Update" runat="server" Text="Thêm Nhân Viên" OnClick="btn_Update_Click"   /></td>
                </tr>            
            </table>
        </div>
 </div>
 </div>
</asp:Content>

